package com.ruoyi.chengkao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkExamUniversityMapper;
import com.ruoyi.chengkao.domain.CkExamUniversity;
import com.ruoyi.chengkao.service.ICkExamUniversityService;

/**
 * 报考志愿院校信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkExamUniversityServiceImpl implements ICkExamUniversityService 
{
    @Autowired
    private CkExamUniversityMapper ckExamUniversityMapper;

    /**
     * 查询报考志愿院校信息
     * 
     * @param id 报考志愿院校信息主键
     * @return 报考志愿院校信息
     */
    @Override
    public CkExamUniversity selectCkExamUniversityById(Long id)
    {
        return ckExamUniversityMapper.selectCkExamUniversityById(id);
    }

    @Override
    public List<CkExamUniversity> selectCkExamUniversityAll()
    {
        return ckExamUniversityMapper.selectCkExamUniversityAll();
    }

    /**
     * 查询报考志愿院校信息列表
     * 
     * @param ckExamUniversity 报考志愿院校信息
     * @return 报考志愿院校信息
     */
    @Override
    public List<CkExamUniversity> selectCkExamUniversityList(CkExamUniversity ckExamUniversity)
    {
        return ckExamUniversityMapper.selectCkExamUniversityList(ckExamUniversity);
    }

    /**
     * 新增报考志愿院校信息
     * 
     * @param ckExamUniversity 报考志愿院校信息
     * @return 结果
     */
    @Override
    public int insertCkExamUniversity(CkExamUniversity ckExamUniversity)
    {
        return ckExamUniversityMapper.insertCkExamUniversity(ckExamUniversity);
    }

    /**
     * 修改报考志愿院校信息
     * 
     * @param ckExamUniversity 报考志愿院校信息
     * @return 结果
     */
    @Override
    public int updateCkExamUniversity(CkExamUniversity ckExamUniversity)
    {
        return ckExamUniversityMapper.updateCkExamUniversity(ckExamUniversity);
    }

    /**
     * 批量删除报考志愿院校信息
     * 
     * @param ids 需要删除的报考志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamUniversityByIds(Long[] ids)
    {
        return ckExamUniversityMapper.deleteCkExamUniversityByIds(ids);
    }

    /**
     * 删除报考志愿院校信息信息
     * 
     * @param id 报考志愿院校信息主键
     * @return 结果
     */
    @Override
    public int deleteCkExamUniversityById(Long id)
    {
        return ckExamUniversityMapper.deleteCkExamUniversityById(id);
    }
}
